package M807;
//第四题
public class M80704 {
    public static void main(String[] args) {
        int m=0;
        for (int i=0;i<=1000;i++){
            m+=i;
        }
        System.out.println(m);
    }
}
